-- GENERATED SPELL FOR [Blackheart the Inciter] --


function spell0_18667(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(33709,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18667', 2353, 1)
end

function spell1_18667(pUnit, Event) --@Incite Chaos,Self--
pUnit:FullCastSpellOnTarget(33676,pUnit)
pUnit:RegisterEvent('Sorts_18667', 746, 1)
end

function spell2_18667(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(33707,pUnit)
pUnit:RegisterEvent('Sorts_18667', 739, 1)
end

function Sorts_18667(pUnit, Event)
local choix_sorts_18667 = math.random(0, 2)
if choix_sorts_18667 == 0 then
pUnit:RegisterEvent('spell0_18667', 1, 1)
end
if choix_sorts_18667 == 1 then
pUnit:RegisterEvent('spell1_18667', 1, 1)
end
if choix_sorts_18667 == 2 then
pUnit:RegisterEvent('spell2_18667', 1, 1)
end
end

function mob18667_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18667', math.random(1500, 3000), 1)
end

function mob18667_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18667_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18667_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18667, 1, 'mob18667_Action')
RegisterUnitEvent(18667, 2, 'mob18667_Leave')
RegisterUnitEvent(18667, 3, 'mob18667_Kill')
RegisterUnitEvent(18667, 4, 'mob18667_Die')
